﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pattern.Provider;

namespace ClientWebApplication
{
    public partial class DemoWebForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write(Message.Insert(new MessageModel("插入", DateTime.Now)));
            Response.Write("<br />");
            Response.Write(Message.Get()[0].Message + " " + Message.Get()[0].PublishTime.ToString());
        }
    }
}